﻿using System;
using System.Numerics;

class CalculateNfactorial

            // Write a program to calculate n! for each n in the range [1..100]. Hint: 
            // Implement first a method that multiplies a number represented as array of digits by given integer number. 

{
    static void Main()
    {
        Console.Write("Enter value for 'N' such that 1<N<100: ");
        int n = int.Parse(Console.ReadLine());
        Console.WriteLine();
        FactorialCalculation(n);
    }

    static void FactorialCalculation(int n)
    {
        BigInteger fact = 1;
        for (int i = 1; i <= n; i++)
        {
            fact *= i;
        }
        Console.WriteLine("The factorial of {0} is equal to: {1}", n, fact);
    }
}

